Skip to content

fix(component): normalize Home/End escape variants#1227

Open
anhydrous99 wants to merge 1 commit intoArthurSonzogni:mainfrom
anhydrous99:fix/home-end-normalization
Open

fix(component): normalize Home/End escape variants#1227
anhydrous99 wants to merge 1 commit intoArthurSonzogni:mainfrom
anhydrous99:fix/home-end-normalization

Conversation

@anhydrous99
Copy link
Copy Markdown

@anhydrous99 anhydrous99 commented Apr 15, 2026

Summary

  • Normalize ESC[1~ to Event::Home and ESC[4~ to Event::End.
  • This lets FTXUI recognize Home/End keypresses when environments such as tmux expose them through these terminfo sequences.
  • Add focused terminal input parser regression coverage.
  • Preserve existing Home/End handling for ESC[H, ESC[F, ESCOH, and ESCOF.

Reference

Tests

  • cmake --build build --target ftxui-tests
  • ./build/ftxui-tests --gtest_filter=Event.Special
  • ctest --test-dir build --output-on-failure

@anhydrous99 anhydrous99 marked this pull request as ready for review April 15, 2026 04:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants